<template>
  <div class="sys-intro">
    <div class="mask-con">
      <div class="title animate__animated animate__fadeInDown">
        {{ info.title }}
      </div>
      <div
        class="sub-title animate__animated animate__fadeInDown animate__delay-1s"
      >
        {{ info.subTitle }}
      </div>
      <div class="info-con">
        <div
          v-for="(item, i) in cards"
          :key="item.title + i"
          class="info-item animate__animated animate__fadeInUp animate__delay-2s"
        >
          <Card hoverable :title="item.title" :bordered="false">
            <p>
              {{ item.content }}
            </p>
          </Card>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "SystemIntro",
  computed: {
    config() {
      return this.$store.getters.curConfig;
    },
    info() {
      return this.config && this.config.info1 ? this.config.info1 : {};
    },
    cards() {
      return this.info && this.info.cards ? this.info.cards : [];
    },
  },
};
</script>

<style lang="scss" scoped>
.sys-intro {
  width: 100%;
  height: 100%;
  text-align: center;
  position: relative;
  .mask-con {
    width: 100%;
    height: 100%;

    color: white;
    position: absolute;
    top: 0;
    left: 0;
    .title {
      font-size: 3rem;
      padding: 1.5rem;
      padding-top: 5rem;
      font-weight: bold;
    }
    .sub-title {
      font-size: 1.5rem;
      padding: 1rem 0;
    }
    .info-con {
      width: 100%;
      margin-top: 10%;
      padding: 0 15%;
      display: flex;
      height: 12rem;
      justify-content: center;
      .info-item {
        flex: 1;
        text-align: center;
        padding: 0 2rem;
        .ant-card-bordered {
          height: 100%;
        }
      }
    }
  }
}
::v-deep {
  .ivu-card-head {
    font-size: 1.2rem;

    p {
      font-size: unset;
      height: unset;
      line-height: unset;
    }
  }
  .ivu-card-body {
    font-size: 1rem;
    color: black;
    text-align: left;
  }
  .ivu-card {
    height: 100%;
  }
}
</style>
